//
//  MSAppDelegate.h
//  MS
//
//  Created by He Yuan on 13-2-6.
//  Copyright (c) 2013年 He Yuan. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TabBarViewController;
@class MSHomeVC;
@class MSMessageVC;
@class MSMeVC;
@class MSShowerVC;

@interface MSAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (strong, nonatomic) TabBarViewController *tabBarVC;

@property (strong, nonatomic) MSHomeVC *homeVC;

@property (strong, nonatomic) MSMessageVC *msgVC;

@property (strong, nonatomic) MSMeVC *meVC;

@property (strong, nonatomic) MSShowerVC *showerVC;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

+ (MSAppDelegate *)sharedAppDelegate;

-(void)showNewPicture;

-(void)logOut;

-(void)logIn:(BOOL)isAnimation;

-(void)handleUserInfo:(NSDictionary *)info password:(NSString *)pwd;

-(void)dismissViewControl;


- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@end
